package com.bwie.coupon.controller;

import com.bwie.common.core.domain.Result;
import com.bwie.coupon.service.MlCouponPreferentialService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/mlCouponPreferential")
@RestController
@Log4j2
public class MlCouponPreferentialController {
    @Autowired
    private MlCouponPreferentialService mlCouponPreferentialService;

    @GetMapping("/{sellerId}")
    public Result selectAll(@PathVariable Long sellerId) {
        return mlCouponPreferentialService.selectAll(sellerId);
    }
}
